\doxysection{svm\+\_\+functions\+\_\+f16.\+h}
\hypertarget{svm__functions__f16_8h_source}{}\label{svm__functions__f16_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Middlewares/ST/ARM/DSP/Include/dsp/svm\_functions\_f16.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Middlewares/ST/ARM/DSP/Include/dsp/svm\_functions\_f16.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/******************************************************************************}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ *\ @file\ \ \ \ \ svm\_functions\_f16.h}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ @brief\ \ \ \ Public\ header\ file\ for\ CMSIS\ DSP\ Library}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ @version\ \ V1.10.0}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ @date\ \ \ \ \ 08\ July\ 2021}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ Target\ Processor:\ Cortex-\/M\ and\ Cortex-\/A\ cores}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ ******************************************************************************/}}
\DoxyCodeLine{00008\ \textcolor{comment}{/*}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ Copyright\ (c)\ 2010-\/2020\ Arm\ Limited\ or\ its\ affiliates.\ All\ rights\ reserved.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ SPDX-\/License-\/Identifier:\ Apache-\/2.0}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ Licensed\ under\ the\ Apache\ License,\ Version\ 2.0\ (the\ License);\ you\ may}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ not\ use\ this\ file\ except\ in\ compliance\ with\ the\ License.}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ You\ may\ obtain\ a\ copy\ of\ the\ License\ at}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ www.apache.org/licenses/LICENSE-\/2.0}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ Unless\ required\ by\ applicable\ law\ or\ agreed\ to\ in\ writing,\ software}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ distributed\ under\ the\ License\ is\ distributed\ on\ an\ AS\ IS\ BASIS,\ WITHOUT}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ WARRANTIES\ OR\ CONDITIONS\ OF\ ANY\ KIND,\ either\ express\ or\ implied.}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ See\ the\ License\ for\ the\ specific\ language\ governing\ permissions\ and}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *\ limitations\ under\ the\ License.}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ \ }
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#ifndef\ \_SVM\_FUNCTIONS\_F16\_H\_}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#define\ \_SVM\_FUNCTIONS\_F16\_H\_}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \textcolor{preprocessor}{\#include\ "{}arm\_math\_types\_f16.h"{}}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#include\ "{}arm\_math\_memory.h"{}}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#include\ "{}dsp/none.h"{}}}
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#include\ "{}dsp/utils.h"{}}}
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#include\ "{}dsp/svm\_defines.h"{}}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{preprocessor}{\#ifdef\ \ \ \_\_cplusplus}}
\DoxyCodeLine{00039\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}}
\DoxyCodeLine{00040\ \{}
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#if\ defined(ARM\_FLOAT16\_SUPPORTED)}}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#define\ STEP(x)\ (x)\ <=\ 0\ ?\ 0\ :\ 1}}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00066\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00067\ \{}
\DoxyCodeLine{00068\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00069\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00070\ \ \ float16\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00071\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00072\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00073\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00074\ \}\ arm\_svm\_linear\_instance\_f16;}
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00076\ }
\DoxyCodeLine{00080\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00081\ \{}
\DoxyCodeLine{00082\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00083\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00084\ \ \ float16\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00085\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00086\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00087\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00088\ \ \ int32\_t\ \ \ \ \ \ \ \ \ degree;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00089\ \ \ float16\_t\ \ \ \ \ \ \ coef0;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00090\ \ \ float16\_t\ \ \ \ \ \ \ gamma;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00091\ \}\ arm\_svm\_polynomial\_instance\_f16;}
\DoxyCodeLine{00092\ }
\DoxyCodeLine{00096\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00097\ \{}
\DoxyCodeLine{00098\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00099\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00100\ \ \ float16\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00101\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00102\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00103\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00104\ \ \ float16\_t\ \ \ \ \ \ \ gamma;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00105\ \}\ arm\_svm\_rbf\_instance\_f16;}
\DoxyCodeLine{00106\ }
\DoxyCodeLine{00110\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00111\ \{}
\DoxyCodeLine{00112\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00113\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00114\ \ \ float16\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00115\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00116\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00117\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00118\ \ \ float16\_t\ \ \ \ \ \ \ coef0;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00119\ \ \ float16\_t\ \ \ \ \ \ \ gamma;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00120\ \}\ arm\_svm\_sigmoid\_instance\_f16;}
\DoxyCodeLine{00121\ }
\DoxyCodeLine{00134\ }
\DoxyCodeLine{00135\ }
\DoxyCodeLine{00136\ \textcolor{keywordtype}{void}\ arm\_svm\_linear\_init\_f16(arm\_svm\_linear\_instance\_f16\ *S,\ }
\DoxyCodeLine{00137\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00138\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00139\ \ \ float16\_t\ intercept,}
\DoxyCodeLine{00140\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients,}
\DoxyCodeLine{00141\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors,}
\DoxyCodeLine{00142\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ *classes);}
\DoxyCodeLine{00143\ }
\DoxyCodeLine{00152\ \ \ }
\DoxyCodeLine{00153\ \textcolor{keywordtype}{void}\ arm\_svm\_linear\_predict\_f16(\textcolor{keyword}{const}\ arm\_svm\_linear\_instance\_f16\ *S,\ }
\DoxyCodeLine{00154\ \ \ \ \textcolor{keyword}{const}\ float16\_t\ *\ in,\ }
\DoxyCodeLine{00155\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00156\ }
\DoxyCodeLine{00157\ }
\DoxyCodeLine{00173\ }
\DoxyCodeLine{00174\ }
\DoxyCodeLine{00175\ \textcolor{keywordtype}{void}\ arm\_svm\_polynomial\_init\_f16(arm\_svm\_polynomial\_instance\_f16\ *S,\ }
\DoxyCodeLine{00176\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00177\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00178\ \ \ float16\_t\ intercept,}
\DoxyCodeLine{00179\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients,}
\DoxyCodeLine{00180\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors,}
\DoxyCodeLine{00181\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes,}
\DoxyCodeLine{00182\ \ \ int32\_t\ \ \ \ \ \ degree,}
\DoxyCodeLine{00183\ \ \ float16\_t\ coef0,}
\DoxyCodeLine{00184\ \ \ float16\_t\ gamma}
\DoxyCodeLine{00185\ \ \ );}
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00195\ \textcolor{keywordtype}{void}\ arm\_svm\_polynomial\_predict\_f16(\textcolor{keyword}{const}\ arm\_svm\_polynomial\_instance\_f16\ *S,\ }
\DoxyCodeLine{00196\ \ \ \ \textcolor{keyword}{const}\ float16\_t\ *\ in,\ }
\DoxyCodeLine{00197\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00198\ }
\DoxyCodeLine{00199\ }
\DoxyCodeLine{00213\ }
\DoxyCodeLine{00214\ \textcolor{keywordtype}{void}\ arm\_svm\_rbf\_init\_f16(arm\_svm\_rbf\_instance\_f16\ *S,\ }
\DoxyCodeLine{00215\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00216\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00217\ \ \ float16\_t\ intercept,}
\DoxyCodeLine{00218\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients,}
\DoxyCodeLine{00219\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors,}
\DoxyCodeLine{00220\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes,}
\DoxyCodeLine{00221\ \ \ float16\_t\ gamma}
\DoxyCodeLine{00222\ \ \ );}
\DoxyCodeLine{00223\ }
\DoxyCodeLine{00232\ \textcolor{keywordtype}{void}\ arm\_svm\_rbf\_predict\_f16(\textcolor{keyword}{const}\ arm\_svm\_rbf\_instance\_f16\ *S,\ }
\DoxyCodeLine{00233\ \ \ \ \textcolor{keyword}{const}\ float16\_t\ *\ in,\ }
\DoxyCodeLine{00234\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00235\ }
\DoxyCodeLine{00250\ }
\DoxyCodeLine{00251\ \textcolor{keywordtype}{void}\ arm\_svm\_sigmoid\_init\_f16(arm\_svm\_sigmoid\_instance\_f16\ *S,\ }
\DoxyCodeLine{00252\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00253\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00254\ \ \ float16\_t\ intercept,}
\DoxyCodeLine{00255\ \ \ \textcolor{keyword}{const}\ float16\_t\ *dualCoefficients,}
\DoxyCodeLine{00256\ \ \ \textcolor{keyword}{const}\ float16\_t\ *supportVectors,}
\DoxyCodeLine{00257\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes,}
\DoxyCodeLine{00258\ \ \ float16\_t\ coef0,}
\DoxyCodeLine{00259\ \ \ float16\_t\ gamma}
\DoxyCodeLine{00260\ \ \ );}
\DoxyCodeLine{00261\ }
\DoxyCodeLine{00270\ \textcolor{keywordtype}{void}\ arm\_svm\_sigmoid\_predict\_f16(\textcolor{keyword}{const}\ arm\_svm\_sigmoid\_instance\_f16\ *S,\ }
\DoxyCodeLine{00271\ \ \ \ \textcolor{keyword}{const}\ float16\_t\ *\ in,\ }
\DoxyCodeLine{00272\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00273\ }
\DoxyCodeLine{00274\ }
\DoxyCodeLine{00275\ }
\DoxyCodeLine{00276\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*defined(ARM\_FLOAT16\_SUPPORTED)*/}\textcolor{preprocessor}{}}
\DoxyCodeLine{00277\ \textcolor{preprocessor}{\#ifdef\ \ \ \_\_cplusplus}}
\DoxyCodeLine{00278\ \}}
\DoxyCodeLine{00279\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00280\ }
\DoxyCodeLine{00281\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ ifndef\ \_SVM\_FUNCTIONS\_F16\_H\_\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
